import React, { Component } from 'react'
import Searchs from '@c/searchHeader'
import Ctable from '@c/table'
import {connect} from "dva"

@connect(s => ({
  ...s['index']
}))
class Page extends Component {
  constructor(){
    super()
    this.searchs=[
      {
        type: 'input',
        alias: 'a',
        name: '客户名称'
      },
      {
        type: 'input',
        alias: 'b',
        name: '手机号'
      },
    ]
    this.columns=[
      {
        title: '客户名称',
        dataIndex: 'a',
        width: 150
      },
      {
        title: '手机号',
        dataIndex: 'b',
        width: 100
      },
      {
        title: '性别',
        dataIndex: 'c',
        width: 60
      },
      {
        title: '注册时间',
        dataIndex: 'd',
        width: 120
      },
      {
        title: '注册来源',
        dataIndex: 'e',
        width: 80
      },
    ]
  }
  componentDidMount() {}
  render() {
    return (
      <div>
        <div>潜在会员</div>
        <Searchs
          option={this.searchs}
        />
        <Ctable
          columns={this.columns}
        />
      </div>
    )
  }
}

export default Page

